package com.zhx.ad.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhx.ad.common.exception.AdException;
import com.zhx.ad.entity.AdUser;
import com.zhx.ad.client.vo.CreateUserRequest;
import com.zhx.ad.client.vo.CreateUserResponse;
import org.apache.ibatis.annotations.Param;

/**
 *describe: 
 *
 *@author zhanghaixuan
 *@date 2019/02/02
 **/
public interface IAdUserService extends IService<AdUser> {

	/**
	 * <h2>创建用户</h2>
	 * */
	CreateUserResponse createUser(CreateUserRequest request)
			throws AdException;

	AdUser findByUsername(@Param("username") String username);
}
